package
{
	import flash.geom.Rectangle;

	public class MyMath
	{
		public function MyMath()
		{
		}
		public static function Random(x:int, y:int):int
		{
			return Math.round((Math.random()*(y-x))+x);
		}
		public static function PointInRect(xP:int, yP:int, xR:int, yR:int, w:int, h:int)
		{
			if(xP < xR || yP < yR || xP > xR + w || yP > yR + h) return false;
			return true;
		}
	}
}